package com.base.datastructer.linklist;

import java.util.Scanner;

public class NodeSingle {
    private int data;
    public NodeSingle pNext;
    public NodeSingle(){
        this.data = -1;
        this.pNext = null;
    }
    
    public int getData() {
        return data;
    }
    
    public void setData(int data) {
        this.data = data;
    }
    
    public void inputSignleList(){
        Scanner input =  new Scanner(System.in);
        System.out.println("Input data signle node :");
        int variableDynamic = input.nextInt();
        this.data = variableDynamic;
    }
}
